home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / extras / programm / gemfsc20 / gemfsc20.lzh / GEMFBIND / VSTALIGN.S < prev    next >
Text File  |  1993-03-26  |  1KB  |  47 lines

  1. ;*========================================================================
  2. ;* VDIFAST Public Domain VDI bindings.
  3. ;*========================================================================
  4.  
  5.  
  6. ;*------------------------------------------------------------------------
  7. ;* Set text alignment.
  8. ;*------------------------------------------------------------------------
  9.  
  10.           globl     _vst_alignment
  11. _vst_alignment:
  12. ;      .cargs      #8,handle.w,hin.w,vin.w,hout.l,vout.l
  13.  
  14. handle      =         8
  15. hin       =         10
  16. vin       =         12
  17. hout      =         14
  18. vout      =         18
  19.  
  20.           link        a6,#-4                ;* Allocate intout[2].
  21.  
  22. ;          VContrl    #39,,,#2
  23.           move.w    handle(a6),-(sp)    ; contrl[6]
  24.           clr.l     -(sp)                ; contrl[5,4]
  25.           move.w    #2,-(sp)            ; contrl[3]
  26.           subq.l    #2,sp                ; contrl[2]
  27.           clr.w     -(sp)                ; contrl[1]
  28.           move.w    #39,-(sp)            ; contrl[0]
  29.  
  30.           subq.l    #4,sp                ;* -> ptsout
  31.           pea        -4(a6)                ;* -> intout
  32.           subq.l    #4,sp                ;* -> ptsin
  33.           pea        hin(a6)             ;* -> intin
  34.           pea        16(sp)                ;* -> contrl
  35.  
  36.           move.l    sp,d1
  37.           jsr        vditrap
  38.  
  39.           move.l    hout(a6),a0         ;* Return horizontal
  40.           move.w    -4(a6),(a0)         ;* from intout[0].
  41.           move.l    vout(a6),a0         ;* Return vertical
  42.           move.w    -2(a6),(a0)         ;* from intout[1].
  43.  
  44.           unlk        a6
  45.           rts
  46.           end
  47.